<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="x"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>首页</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/base.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/common.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/index.css">
    <script src="${pageContext.request.contextPath}/static/layui-v2.6.8/layui/layui.js" charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/static/js/index.js"></script>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="header">
        <div class="w">
            <div class="logo fl"><a href="${pageContext.request.contextPath}/login">LOGO</a></div>
            <div class="search">
                <input type="text" name="" class="text" placeholder="请输入">
                <button class="btn"><i class="layui-icon layui-icon-search"></i></button>
            </div>
            <div class="r_box fr">
                <a href="${pageContext.request.contextPath}/lookCart"><i class="layui-icon layui-icon-cart-simple"></i></a>
                <span class="r_box_login">亲，请 <a href="${pageContext.request.contextPath}/tologin">登录</a></span>
            </div>
        </div>
    </div>
    <!--菜单-->
    <div class="nav w">
            <div class="menu fl">
                <ul>
                    <li class="menu_item"><a href="#">电器</a></li>
                    <li class="menu_item"><a href="#">男装</a></li>
                    <li class="menu_item"><a href="#">女装</a></li>
                    <li class="menu_item"><a href="#">数码</a></li>
                    <li class="menu_item"><a href="#">日用品</a></li>
                    <li class="menu_item"><a href="#">运动器材</a></li>
                    <li class="menu_item"><a href="#">书籍</a></li>
                </ul>
            </div>
            <div class="field fl">
                <div class="layui-carousel" id="test10" style="border-radius: 4px">
                    <div carousel-item="">
                        <div><img src="static/image/1.png"></div>
                        <div><img src="static/image/2.png"></div>
                        <div><img src="static/image/1.png"></div>
                        <div><img src="static/image/1.png"></div>
                        <div><img src="static/image/1.png"></div>
                        <div><img src="static/image/1.png"></div>
                        <div><img src="static/image/1.png"></div>
                    </div>
                </div>
            </div>
            <div class="box_login fr">
                <p class="title">用户登录</p>
                <img class="h_photo" src="static/image/5.jpg">
                <p>Hi,你好</p>
                <a href="${pageContext.request.contextPath}/tologin" class="login">登录</a>
                <a href="${pageContext.request.contextPath}/toregister" class="register">注册</a>
                <p><a href="${pageContext.request.contextPath}/adminlogin" class="m_login">管理员登录</a></p>
            </div>
    </div>
    <!--商品展示-->
    <div class="shop w">
        <p class="shop_title">商品</p>
        <ul class="shop_show">
        	<x:forEach items="${stock1}" var="stock1">
            <li class="pro_item">
                <a href="#">
                    <img src="${pageContext.request.contextPath }/${stock1.url}" alt="" class="pro_pic">
                    <p class="pro_name">${stock1.product}</p>
                    <p class="pro_price fl">￥${stock1.price}</p>
                    <form action="${pageContext.request.contextPath}/detailGoods2">
                    <input type="hidden" name = "stock_id" value = "${stock1.stock_id}">
					<input type="submit" value="详细查看" class="pro_de fr"></br>
					</form>
                </a>
            </li>
           </x:forEach>
        </ul>
         
    </div>
    <!-- 尾部-->
    <div class="footer">
        <div class="w">
            <div class="mod_help">
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
                <dl class="mod_help_item">
                    <dt>购物指南</dt>
                    <dd><a href="#">购物流程</a></dd>
                    <dd><a href="#">会员介绍</a></dd>
                    <dd><a href="#">常见问题</a></dd>
                </dl>
            </div>
            <div class="mod_copyright">
                <p class="mod_copyright_links">
                    关于我们  |  联系我们  |  联系客服  |  商家入驻  |  营销中心  |  手机购  |  友情链接  |  销售联盟  |  社区  |  公益  |  English Site  |  Contact U
                </p>
                <p class="mod_copyright_info">
                    地址：北京市昌平区建材城西路金燕龙办公楼一层 邮箱: zhanghj+itcast.cn <br>
                    京ICP备08001421号京公网安备110108007702
                </p>
            </div>
        </div>
    </div>
</body>
</html>